home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 26 / Cream of the Crop 26.iso / doom / suckmods.zip / SUCKMODS.ZIP / suck05 / src / stats.qc < prev    next >
Text File  |  1997-05-09  |  387b  |  20 lines

  1. // SUCK: Print everyone's kills and deaths to the console.
  2.  
  3. void() printstats =
  4. {
  5.     local entity e;
  6.     local string s;
  7.  
  8.     e=find(world, classname, "player");
  9.     while (e!=world)
  10.     {
  11.         sprint(self, e.netname);
  12.         sprint(self, ": Kills: ");
  13.         s=ftos(e.num_kills);
  14.         sprint(self, s);
  15.         sprint(self, " Deaths: ");
  16.         s=ftos(e.num_deaths);
  17.         sprint(self, "\n");
  18.         e=find(e, classname, "player");
  19.     }
  20. };